import { Form, Button } from 'antd';
import HighlightText from './HighlightText';

const TextRedCom = () => {
  const [form] = Form.useForm();

  const onSubmit = (values) => {
    console.log('提交内容:', values.content);
  };

  return (
    <Form form={form} onFinish={onSubmit}>
      <Form.Item name="content">
        <HighlightText />
      </Form.Item>
      <Button type="primary" htmlType="submit">
        提交
      </Button>
    </Form>
  );
};

export default TextRedCom;
